.card.card-solid
  .card-header
    h3.card-title
      i.icon.fas.fa-sticky-note
      = t('channels.show.metadata')
  .card-body.p-0
    p.d-flex.flex-column.border-bottom.pl-3.pb-3.pt-3
      span.font-weight-bold = device_name(@channel.device_type)
      span.text-muted = t('channels.show.device_type')
    p.d-flex.flex-column.border-bottom.pl-3.pb-3
      span.font-weight-bold = @channel.slug
      span.text-muted = t('channels.show.slug')
    - if user_signed_in?
      p.d-flex.flex-column.border-bottom.pl-3.pb-3
        span.font-weight-bold = @channel.password.blank? ? t('channels.show.none') : @channel.password
        span.text-muted = t('channels.show.password')
    p.d-flex.flex-column.border-bottom.pl-3.pb-3
      span.font-weight-bold = @channel.bundle_id
      span.text-muted = t('channels.show.match_rule', value: @channel.bundle_id == '*' ? t('channels.show.wildmatch') : '')
    p.d-flex.flex-column.border-bottom.pl-3.pb-3
      span.font-weight-bold = @channel.git_url.blank? ? t('channels.show.none') : @channel.git_url
      span.text-muted = t('channels.show.git_url')
    p.d-flex.flex-column.border-bottom.pl-3.pb-3
      span.font-weight-bold = @channel.releases.count
      span.text-muted = t('channels.show.total_releases')
    p.d-flex.flex-column.pl-3.pb-3.mb-0
      span.font-weight-bold = @channel.key
      span.text-muted = t('channels.show.channel_key')

  - if user_signed_in?
    .card-footer.p-1
      a.btn.btn-block.text-primary href="#{edit_app_scheme_channel_path(@channel.scheme.app, @channel.scheme, @channel)}" = t('channels.show.edit_channel')
